package org.example.learn.javaagent.bytebuddy;

import java.util.Random;
// 需要配置 vm options: -javaagent:E:\open-sourcing\learn-bytecode\learn-javaagent\target\learn-javaagent-1.0-SNAPSHOT.jar=testargs
public class RunApp {

    public static void main(String[] args) {
        RunApp app = new RunApp();
        try {
            app.test();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    private void test() throws InterruptedException {
        System.out.println("张三");
        Thread.sleep(new Random().nextInt(1000));
    }
}
